export default function lookUp(dataObj, keyName) {
  // 遍历
  // 首先判断是否有“.”
  if (keyName.includes('.')&&keyName!='.') {
    let temp = dataObj;
    var names = keyName.split('.');
    for (let keys of names) {
      temp = temp[keys];
    }
    return temp;
  }
  return dataObj[keyName];
}